package com.netty.dubborpc.provider ;

import com.netty.dubborpc.publicinterface.HelloServer;

public class HelloServerImpl implements HelloServer {

    private static int count;
    @Override
    public String hello(String msg) {
        System.out.println("收到客户端的消息: " +msg);
        if (msg !=null){
            return "已收到您发送的信息 [ "+msg+" ] "+"第" + (++count) + " 次";
        }else {
            return "已收到您发送的信息  ";
        }
    }
}
